﻿using System;

namespace Jodell.Transport.Modbus
{
    public class ModbusRecInfo
    {
        public byte SlaveNo { get; set; }
        public byte[] RecBuffer { get; set; }
        public byte[] RecData { get; set; }
        public byte Command { get; set; }
        public UInt16 RegestAddress { get; set; }
        public UInt16 RegestLength { get; set; }
        /// <summary>
        /// 接收到的Crc
        /// </summary>
        public UInt16 CrcRec { get; set; }
        /// <summary>
        /// 计算的Crc
        /// </summary>
        public UInt16 CrcClc { get; set; }
        /// <summary>
        /// 结果 是否完成
        /// </summary>
        public bool Ret { get; set; }
    }
}
